import time

N = 9999
fo = open('../data', 'r')
ar = fo.readlines()
arr = []
for i in range(N):
    arr.append(int(ar[i].rstrip('\n')))
print('Read finish...')
st_ti = time.time()

for i in range(N - 1):
    for j in range(N - i - 1):
        if arr[j] > arr[j + 1]:
            asd = arr[j]
            arr[j] = arr[j + 1]
            arr[j + 1] = asd

en_ti = time.time()
print(arr)
print('Time: ' + str((en_ti - st_ti) * 1000) + 'ms')
